/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package frmwrk.core;

import frmwrk.interfaces.IAccount;
import frmwrk.interfaces.IParty;
import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Damian
 */
public class Party implements IParty {

    private String name_, street_, city_, state_, zip_, email_;
    private String partyType;

    private List<IAccount> accountList;

    protected Party(String name_, String street_, String city_, String state_, String zip_, String email_) {
        this.name_ = name_;
        this.street_ = street_;
        this.city_ = city_;
        this.state_ = state_;
        this.zip_ = zip_;
        this.email_ = email_;
        this.accountList = new ArrayList<IAccount>();
    }
    
    @Override
    public String getPartyType() {
        return partyType;
    }

    @Override
    public String getCity() {
        return city_;
    }

    @Override
    public void setCity(String city_) {
        this.city_ = city_;
    }

    @Override
    public String getEmail() {
        return email_;
    }

    @Override
    public void setEmail(String email_) {
        this.email_ = email_;
    }

    @Override
    public String getName() {
        return name_;
    }

    @Override
    public void setName(String name_) {
        this.name_ = name_;
    }

    @Override
    public String getState() {
        return state_;
    }

    @Override
    public void setState(String state_) {
        this.state_ = state_;
    }

    @Override
    public String getStreet() {
        return street_;
    }

    @Override
    public void setStreet(String street_) {
        this.street_ = street_;
    }

    @Override
    public String getZip() {
        return zip_;
    }

    @Override
    public void setZip(String zip_) {
        this.zip_ = zip_;
    }

    @Override
    public void addAccount(IAccount account) {
        this.accountList.add(account);

    }

}
